package edu.uhcl.team_drone.assets;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter;
import com.badlogic.gdx.graphics.g3d.Model;

public class Assets {

    public static AssetManager manager = new AssetManager();

    public static BitmapFont fontSize12, fontSize16, fontSize20;

    public static void init() {
        manager.load("SplashScreenImage.png", Texture.class);
        manager.load("GrassPlane_Better.g3db", Model.class);
        manager.load("SKYBOX.g3db", Model.class);

        makeFonts();
    }

    private static void makeFonts() {
        FreeTypeFontGenerator gen = new FreeTypeFontGenerator(
                Gdx.files.internal("SketchRockwell-Bold.ttf"));
        FreeTypeFontParameter params = new FreeTypeFontParameter();
        params.size = 12;
        fontSize12 = gen.generateFont(params);
        params.size = 16;
        fontSize16 = gen.generateFont(params);
        params.size = 20;
        fontSize20 = gen.generateFont(params);
        
        gen.dispose();
    }

}
